package com.letoken.platform.repo.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.app.po.AppUserExchangeInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-09-23
 */
public interface AppUserExchangeInfoMapper extends BaseMapper<AppUserExchangeInfo> {

    @Select("select  amount from app_user_exchange_info where user_id=#{userId}")
   BigDecimal getExchangeQuota(@Param("userId")Integer userId);
}
